# -*- coding: utf-8 -*-
from MainHandler import *
#import numpy
#import cv
#import os
class ImgHandler(MainHandler):

    def post_default(self,message=u""):
        #输入原图像 width=500
        img = self.get_argument("formFile","")
        if img :
            face = self.faceTest(img)
              #输出人脸
            self.write(face)

        #print img
    def faceTest(self,img):
        #face recognition

        return img